package managerBeanImpl;

import javax.annotation.security.RolesAllowed;
import javax.ejb.Stateless;
import javax.faces.context.FacesContext;

import managerBean.HomeManagerBean;

@Stateless
public class HomeManagerBeanImpl implements HomeManagerBean {

	@Override
	@RolesAllowed({"CLIENTE"})
	public String getUsernameMgr() {
		return FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();
	}

}
